package com.qf.android.sport.entity.news;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by wuruyuan on 2016/12/28.
 */

public class Recs {
    private int id;
    private int dashboard_id;
    private String title;
    private String image;
    private int image_type;
    private List<String> images;
    private int content_type;
    private User user;
    private String source_link;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getDashboard_id() {
        return dashboard_id;
    }

    public void setDashboard_id(int dashboard_id) {
        this.dashboard_id = dashboard_id;
    }

    public List<String> getImages() {
        List<String> list = new ArrayList<>();
        if (images != null && images.size() != 0) {
            for (int i = 0; i < images.size(); i++) {
                String str = "http://lifeixphoto.qiniudn.com/" + images.get(i);
                list.add(i, str);
            }
            return list;
        } else {
            return images;
        }
    }

    public void setImages(List<String> images) {

        this.images = images;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getImage() {
        return "http://lifeixphoto.qiniudn.com/" + image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public int getImage_type() {
        return image_type;
    }

    public void setImage_type(int image_type) {
        this.image_type = image_type;
    }

    public int getContent_type() {
        return content_type;
    }

    public void setContent_type(int content_type) {
        this.content_type = content_type;
    }

    public String getSource_link() {
        return source_link;
    }

    public void setSource_link(String source_link) {
        this.source_link = source_link;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

}
